<template>
  <Dialog class="xtx-dialog" title="添加地址" :modelValue="visibleDialog">
    <div class="address-detail">
      <div class="xmx-from">
        <div class="xmx-from-item">
          <span class="label">收货人：
          </span>
          <input class="input" placeholder="请输入收货人">



        </div>
      </div>
      <div class="xmx-from">
        <div class="xmx-from-item">
          <span class="label">手机号：
          </span>
          <input class="input" placeholder="请输入手机号">

        </div>
      </div>
      <div class="xmx-from">
        <div class="xmx-from-item">
          <span class="label">地区：
            
          </span>
          <select class="input" placeholder="请选择所在地区" />


        </div>
      </div>
      <div class="xmx-from">
        <div class="xmx-from-item">
          <span class="label">详细地址：
          </span>
          <input class="input" placeholder="请输入详细地址">


        </div>
      </div>
      <div class="xmx-from">
        <div class="xmx-from-item">
          <span class="label">邮政编码：
          
          </span>
          <input class="input" placeholder="请输入邮政编码">


        </div>
      </div>
      <div class="xmx-from">
        <div class="xmx-from-item">
          <span class="label">地址标签：
            
          </span>
          <input class="input" placeholder="请输入地址标签，逗号分隔">


        </div>
      </div>
    </div>
    <template #footer>
      <el-button @click="visibleDialog = false" type="gray" style="margin-right:20px">取消</el-button>
      <el-button @click="visibleDialog = false" type="primary">确认</el-button>
    </template>
  </Dialog>

</template>

<script>
import Dialog from '../../components/pay/Dialog.vue'
import { ref } from '@vue/reactivity'
export default {
  setup() {
    const visibleDialog = ref(false)
    const open = () => {
      visibleDialog.value = true
    }
    return {
      visibleDialog, open
    }
  },
  components: {
    Dialog
  }
}
</script>
<style scoped lang='less'>
.xtx-dialog {
  width: 1600px;

  font-size: 14pxs;

  .address-detail {
    padding-left: 10px;
    text-align: center;
  }
}

.xmx-from {
  padding: 0px;
  display: flex;

  .xmx-from-item {
    display: flex;
    margin-bottom: 5px;
    .label {
      display: block;
      flex: 4;
      text-align: center;
     line-height: 36px;
     width: 200px;
    }

    .input {
      flex: 8;
      border: 1px solid #ddd;
      width: 250px;
      height: 35px;
      line-height: 50px;
      padding: 0px 10px;
      select{
        flex: 8;
        border: 1px solid #ddd;
      width: 250px;
      height: 35px;
      line-height: 50px;
      padding: 0px 10px;
      }

      // margin-left: 5px;
      // justify-content: space-between;
      // display: inline-block;
      // align-items: baseline;
      // ::deep.input-class{
      //   margin-left: 20px;
      //   // margin-bottom: 5px;
      //   padding: 0px 10px  ;
      // }
      .placeholder {
        color: #999;
      }
    }
  }

  .input1 {
    border: 1px solid #ddd;
    width: 250px;
    height: 35px;
    line-height: 50px;

  }

  // margin-left: 20px;
  // margin-left:0px;

}
</style>